<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>cyrus-sasl</Name>
        <Homepage>http://asg.web.cmu.edu/sasl/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        <IsA>service</IsA>
        <Summary>The Cyrus SASL (Simple Authentication and Security Layer)</Summary>
        <Description>cyrus-sasl is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols. To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions.</Description>
        <Archive sha1sum="d6669fb91434192529bd13ee95737a8a5040241c" type="targz">http://cyrusimap.org/releases/cyrus-sasl-2.1.26.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>mit-kerberos</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>gdbm-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>groff</Dependency>
        </BuildDependencies>
        <Patches>
            <!--Patch level="1">fix-linkage.patch</Patch-->
            <Patch level="1">CVE-2013-4122.patch</Patch>
            <Patch level="1">0011_saslauthd_ac_prog_libtool.patch</Patch>
            <Patch level="1">0025_ld_as_needed.patch</Patch>
            <Patch level="1">0026_drop_krb5support_dependency.patch</Patch>
            <Patch level="1">0030-dont_use_la_files_for_opening_plugins.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.20-saslauthd.conf-path.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.21-sizes.patch</Patch>
            <Patch level="0">cyrus-sasl-2.1.22-as-needed.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.22-qa.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.22-kerberos4.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.22-ldap-timeout.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.23-man.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.26-keytab.patch</Patch>
            <Patch level="0">cyrus-sasl-2.1.26-no_rpath.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.26-obsolete-macro.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.26-prefer-SCRAM-SHA-1-over-PLAIN.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.26-relro.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.26-size_t.patch</Patch>
            <Patch level="1">cyrus-sasl-2.1.26-warnings.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>cyrus-sasl</Name>
        <RuntimeDependencies>
	  <!--<Dependency>openldap-client</Dependency>-->
            <Dependency>mit-kerberos</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>gdbm</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/cyrus-sasl.conf</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/cyrus-sasl-2</Path>
            <Path fileType="data">/run</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/conf.d/saslauthd" permission="0644" owner="root">saslauthd.confd</AdditionalFile>
            <AdditionalFile target="/etc/pam.d/saslauthd" permission="0644" owner="root">saslauthd.pam</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/cyrus-sasl.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>cyrus-sasl-devel</Name>
        <Summary>Development files for cyrus-sasl</Summary>
        <RuntimeDependencies>
            <Dependency release="current">cyrus-sasl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc/cyrus-sasl/*.txt</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-19</Date>
            <Version>2.1.26</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>2.1.26</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-07-05</Date>
            <Version>2.1.26</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
